package com.example.zg.zg_312_ordering_new.services;


import com.example.zg.zg_312_ordering_new.beans.Comment;
import com.example.zg.zg_312_ordering_new.beans.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodOrderService {
    @GET("insertOrder.do")
    Call<User> insertOrder(@Query("user_id") int user_id, @Query("food_id") int food_id, @Query("num") int num, @Query("sum") double sum, @Query("suggesttime") String suggesttime, @Query("address") String address);

    @GET("getAllOrdersByUser.do")
    Call<List<Comment>> getAllOrderByUser(@Query("user_id") int user_id);

}
